<?php
echo "<div id='logo-holder'>";
	echo "<a href='index.php'><img src='images/logo.png' id='logo-img'></a>";
echo "</div>";
echo "<nav>";
	echo "<span><a href='index.php'>Home</a></span>";
	echo "<span><a href='explore.php'>Explore</a></span>";
echo "</nav>";
if(!isset($_SESSION['auth'])) {
	echo "<a class='open-login-lightbox'>Login</a> | CONNECT";
} else {
	if(isset($_SESSION['username'])) {
		//session set logout to ajax logout and refresh on the index page
		echo "<form onsubmit='logout();return false;'>";
			echo "<span id='welcome-username'>Welcome, <a href='profile.php'>" . $_SESSION['username'] . "</a></span>";
		echo "<input type='submit' class='submit' value='Logout'>";
		echo "</form>";
	}
}
?>